using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntitySysCarSuppliesCreateExtend
{
		public static SysCarSupplies ToCreateEntity(this RequestSysCarSuppliesDto dto)
		{
			return new SysCarSupplies
			{
				CsId = dto.id,
				CsCategory = dto.category,
				CsColor = dto.color,
				CsWeight = dto.weight,
				CsDimension = dto.dimension,
				CsMarkUp = dto.markUp,
			};
		}
	}
}
